<template>
    shop模块
    <div v-for="item in list">
      <p>商品id：{{ item.id }}</p>
      <p>商品名称：{{ item.name }}</p>
      <p>商品价格：{{ item.price }}元</p>
    </div>
</template>
  
<script setup>
  import { useShopStore } from './store/shop'
  import { storeToRefs } from 'pinia'
  
  const shop = useShopStore()
  const { list } = storeToRefs(shop)
  
</script>
  
  